#include "ConnectionEvent.h"

namespace Impp
{

DEFINE_EVENT_TYPE(EVT_CONNECTION) 

ConnectionEvent::ConnectionEvent(OscarServerCon* src, ConEvt type, wxEventType eventType, int id) :
	wxNotifyEvent(eventType,id),src(src),type(type)
{
}

ConnectionEvent::~ConnectionEvent()
{
}

wxEvent* ConnectionEvent::Clone()const{
	return new ConnectionEvent(*this);
}

ConEvt ConnectionEvent::getEvtType(){
	return type;
}

OscarServerCon* ConnectionEvent::getSource(){
	return src;
}

}

